const { DataTypes } = require('sequelize');
const sequelize = require('../../config/db');

const Category = sequelize.define('category', {
  id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
  name: { type: DataTypes.STRING, allowNull: false },
  created_at: { type: DataTypes.DATE, defaultValue: DataTypes.NOW }
}, {
  tableName: 'category',
  timestamps: false
});

module.exports = Category;
